package com.waves.design.strategy;

/**
 * vip折扣类 具体策略类
 * 抽象策略类的多个方法实现类之一
 */
public class VIPDiscount implements Discount {
    private final double DISCOUNT = 0.5;

    public double calculate(double price){
        System.out.println("VIP票：");
        System.out.println("增加积分！");
        return price * DISCOUNT;
    }
}
